https://www.boundaryml.com logo
Creating a Classification Function with ...
# general
a
i was reading thru the baml website and learn a lot of new concept and techniques, thanks Baml team one thing i didnt quite get conceptually is the benefit of replacing var name with symbol in prompt enginnering. The paper quoted used it in finetuning which makes sense, as it does bias the llm on what the label mean. But in baml prompt enginner example, the description needs to give away that bias (or the necessary signal) anyway, why would hiding the variable name has any benefit? has there been any study or experiment for symbol tuning in prompt with performance uplift? https://docs.boundaryml.com/examples/prompt-engineering/symbol-tuning
v
Here's a concrete example of symbol tuning! https://boundaryml.com/blog/uuid-swap instead of UUIDs -> use ints
the general idea is that use the best way to represent semantic ideas for a model, and that may be different than the best way to represent it in your code
a
Thanks @Vaibhav (BAML 🐑), it makes a lot of sense to symbol tunning long but meaningless uuid. For classification task with meaningful label tho, would you still alias them to meaningless symbol? like in the doc, "refund" -> "k1"? thats the one that I dont understand the benefit
v
for that one, the idea is that your enum label may be biasing the LLM in a way you don't intend: e.g. Category1: Category2: instead of: Refund: CancelOrder: so the attention of the model can be spend 100% on understanding
<custom description>
instead of allow trying to forget its bias for what the category name is and understanding how that conflicts with
<custom description>
. That said everything in AI is always a test first mentality!
so no matter what anyone says, just try it 🙂
a
Love it, yeh that makes sense! thanks for the detailed explanation!
v
thanks for asking 🙂
a
yes thats really clear and straight to the point. Its really amazing on the amount of effort you and your team is willing to take feedback and make fast improvement. Thanks heaps
v
merging now! thanks for the confirmation!
and always happy to help
2 Views